package com.cfx.exercise_32;

public class TestString {
	
	static String s = "qwer";
	@SuppressWarnings(value="all")
	public static void main(String[] args) {
		
		String s1 = "hello";
		String s2 = "world";		
		System.out.println(s1.concat(s2));
		System.out.println(s1.toUpperCase());
		System.out.println(s1.length());
		System.out.println(s1.charAt(0));
		char []c = new char[]{'a','b','c'};
		//System.out.println(new String(c));		
		System.out.println(s.copyValueOf(c));
		String s3 = "abc";
		String s4 = new String("abc");
		System.out.println(s3.equals(s4));
		for (char d : c) {
			Character ch = new Character(d);
			System.out.println(ch.toUpperCase(d));
		}
	}
}
